#!/usr/bin/env bash


host=`cat ../config | grep server | cut -d ' ' -f2`


req="curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
\"port\": \"$1\" ,\
\"service\": \"$2\" ,\
\"size\": \"$3\" ,\
\"ips\":\"$4\"
}' '$host/dispatch'"
eval $req